Enter a number $n$ to generate a table of $a^k \bmod n$: